package com.archetypus.projectschedule.web.projects.bd;

import com.archetypus.projectschedule.common.dto.projects.Project;
import com.archetypus.projectschedule.common.dto.projects.ProjectListHandler;
import com.archetypus.projectschedule.common.exceptions.ProjectSchedulerException;
import com.archetypus.projectschedule.core.projects.sf.ProjectSF;

public class ProjectBD implements IProjectBD {

	public void createProject(Project project) throws ProjectSchedulerException {
		ProjectSF.getInstance().createProject(project);
	}

	public void deleteProject(Project project) throws ProjectSchedulerException {
		ProjectSF.getInstance().deleteProject(project);
	}

	public Project findProject(Project project) throws ProjectSchedulerException {
		return ProjectSF.getInstance().findProject(project);
	}

	public ProjectListHandler listProjects() throws ProjectSchedulerException {
		return ProjectSF.getInstance().listProjects();
	}

	public void updateProject(Project project) throws ProjectSchedulerException {
		ProjectSF.getInstance().updateProject(project);
	}

}
